Conditions | 1 |
Total Lines | 15 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | |||
35 | function prepareFrame(id = "bSecurePaymentPluginContainer", checkout_url) { |
||
36 | const ifrm = document.createElement("iframe"); |
||
37 | let url = new URL(checkout_url); |
||
38 | |||
39 | ifrm.setAttribute("src", url.href); |
||
40 | ifrm.setAttribute("id", 'bSecurePaymentPluginEmbeddedIframe'); |
||
41 | ifrm.setAttribute("name", 'bSecurePaymentPluginEmbeddedIframe'); |
||
42 | ifrm.style.position = "absolute"; |
||
43 | ifrm.style.border = "none"; |
||
44 | ifrm.style.top = "0"; |
||
45 | ifrm.style.left = "0"; |
||
46 | ifrm.style.width = "100%"; |
||
47 | ifrm.style.height = "100%"; |
||
48 | document.getElementById(id).appendChild(ifrm); |
||
49 | } |
||
50 | |||
62 | }; |